<?php
include_once '../../common/sql.php';

$ids=$_POST['ids'];
 $conn=connect();
 $sql="delete from categories where id in($ids) ";
$arr=mysqli_query($conn,$sql);

$res=array(
    "code"=>0,
    "msg"=>'删除失败'
);
if($arr){
    $res['code']=1;
    $res['msg']='批量删除信息成功';
}

echo json_encode($res);

?>